$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;

    &::before {
      content: '';
      display: block;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, .4);
    }

    img {
      width: 100%;
      display: block;
      object-fit: cover;
       height: 100vh;
    }

    .text {
      position: absolute;
      left: 12vw;
      top: 220/$f+vw;
      z-index: 10;
      width: 50vw;

      .links {
        display: flex;

        a,
        p,
        span {
          color: rgba(255, 255, 255, .6);
          font-size: 24/$f+vw;
          text-transform: uppercase;
        }

        a {
          transition: all 600ms;

          &:hover {
            color: #E60012;
          }
        }

        span {
          margin: 0 1vw;
        }
      }
    }
  }

  .box1 {
    position: relative;
    z-index: 5;
    margin-top: -11.2vw;
    display: flex;
    justify-content: flex-end;

    .welcome {
      background: #F6F6F6;
      padding: 100/$f+vw 72/$f+vw;
      width: 25vw;

      .t1 {
        color: #1A202C;
        font-size: 40/$f+vw;
        text-transform: uppercase;
      }

      .line {
        width: 113/$f+vw;
        height: 4/$f+vw;
        background: #E60012;
        margin: 65/$f+vw 0;
      }

      .t2 {
        color: rgba(26, 32, 44, 1);
        font-size: 64/$f+vw;
        font-weight: 700;
        text-transform: uppercase;
      }
    }
  }

  .main {
    margin: 120/$f+vw 200/$f+vw;

    .section1 {
      display: flex;
      justify-content: space-between;
      margin: 6vw 0;

      .pic {
        width: 47%;
        overflow: hidden;

        img {
          display: block;
          object-fit: cover;
          width: 100%;
          transition: all 600ms;
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }

      .info {
        width: 45%;

        .t1 {
          color: #888;
          font-size: 20/$f+vw;
          font-weight: 500;
          letter-spacing: 2/$f+vw;
          margin: 24/$f+vw 0;
        }

        .t2 {
          color: rgba(26, 32, 44, 1);
          font-size: 40/$f+vw;
          font-weight: 500;
          text-transform: uppercase;
          &::after {
            content: '';
            display: block;
            width: 141/$f+vw;
            height: 4/$f+vw;
            background: #E60012;
            margin-top: 30/$f+vw;
          }
        }

        .des {
          margin-top: 45/$f+vw;
          color: #000;
          font-size: 16/$f+vw;
          line-height: 1.8;
        }
      }
    }

    .section2 {
      display: flex;
      justify-content: space-between;

      .pic {
        width: 47%;
        overflow: hidden;

        img {
          display: block;
          object-fit: cover;
          width: 100%;
          transition: all 600ms;
        }

        &:hover {
          img {
            transform: scale(1.05);
          }
        }
      }

      .info {
        width: 45%;

        .t1 {
          color: #888;
          font-size: 20/$f+vw;
          font-weight: 500;
          letter-spacing: 2/$f+vw;
          margin-bottom: 24/$f+vw;
        }

        .t2 {
          color: rgba(26, 32, 44, 1);
          font-size: 40/$f+vw;
          font-weight: 500;
          text-transform: uppercase;
        }

        .des {
          margin-top: 90/$f+vw;

          .d {
            display: flex;
            margin-bottom: 32/$f+vw;
            align-items: center;

            img {
              width: 15/$f+vw;
              display: block;
            }

            p {
              color: rgba(26, 32, 44, 1);
              font-size: 20/$f+vw;
              text-transform: capitalize;
              margin-left: 14/$f+vw;
              line-height: 2;
              font-weight: 500;

              span {
                font-weight: bold;
              }
            }
          }
        }
      }
    }

    .section3 {
      display: flex;
      margin: 6vw 0 6vw -1.5%;
      width: 103%;

      .pic {
        width: 23%;
        margin-left: 1.5%;
        position: relative;

        img {
          width: 100%;
          display: block;
          object-fit: cover;
        }

        .text {
          position: absolute;
          left: 0;
          width: calc(100% - 3vw);
          bottom: 0;
          font-size: 16/$f+vw;
          line-height: 1.5;
          color: white;
          background: linear-gradient(180deg, rgba(37, 37, 37, 0.00) 0%, #252525 100%);
          height: 50%;
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          padding: 1vw 1.5vw;
          opacity: 0;
          transition: all 600ms;
        }

        &:hover {
          .text {
            opacity: .95;
          }
        }
      }
    }

    .section4 {
      .t {
        color: rgba(26, 32, 44, 1);
        font-size: 64/$f+vw;
        font-weight: 600;
        text-transform: uppercase;

        &::before {
          content: '';
          display: block;
          width: 113/$f+vw;
          height: 4/$f+vw;
          background: #E60012;
          margin-bottom: 36/$f+vw;
        }
      }

      .scroll-container {
        width: 100%;
        overflow: hidden;
        margin: 120/$f+vw 0 0 0;

        .animate_box {
          display: flex;
          width: max-content;
          animation: ani-loop 20s linear infinite;
          padding-bottom: 20px;

          .flex-xb {
            display: flex;
            flex-wrap: wrap;

            .icon {
              width: 190/$f+vw;
              border-radius: 12px;
              border: 1px solid rgba(255, 255, 255, 0.50);
              background: rgba(255, 255, 255, 0.30);
              box-shadow: 0 0 10px rgba(4, 38, 128, 0.04);
              height: 112/$f+vw;
              display: flex;
              align-items: center;
              justify-content: center;
              margin-left: 20px;

              img {
                // max-height:60/19.2+vw;
                max-width: 65%;
                display: block;
                object-fit: contain;
              }
            }

            .icon_bg {
              width: 190/$f+vw;
              border-radius: 12px;
              border: 1px solid rgba(255, 255, 255, 0.50);
              background: rgba(255, 255, 255, 0.30);
              box-shadow: 0px 5.4px 16.2px 0px rgba(4, 38, 128, 0.04);
              height: 112/$f+vw;
              margin-left: 1vw;
              position: relative;

              &::before {
                background: rgba(45, 52, 95, 0.60);
                content: '';
                display: block;
                position: absolute;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                border-radius: 12px;
              }
            }
          }

          @keyframes ani-loop {
            0% {
              transform: translateX(0);
            }

            100% {
              transform: translateX(-50%);
            }
          }
        }

        .animate_box2 {
          animation-direction: reverse;
        }
      }
    }
  }

  .work {
    padding: 120/$f+vw 200/$f+vw;
    background: rgba(246, 246, 246, .5);
    display: flex;
    justify-content: space-between;

    .l {
      width: 46%;

      .t {
        color: rgba(26, 32, 44, 1);
        font-size: 64/$f+vw;
        font-weight: 600;
        text-transform: uppercase;

        &::before {
          content: '';
          display: block;
          width: 113/$f+vw;
          height: 4/$f+vw;
          background: #E60012;
          margin-bottom: 36/$f+vw;
        }
      }
      .des{
        color: #000;
        font-size: 16/$f+vw;
        line-height: 1.8;
        margin-top: 3vw;
      }
    }

    .r {
      width: 46%;
      position: relative;
      overflow: hidden;
      img {
        width: 100%;
        display: block;
        object-fit: cover;
        transition: all 600ms;
      }

      .more {
        width: 234/$f+vw;
        height: 231/$f+vw;
        opacity: 0.8;
        background: #F6F6F6;
        position: absolute;
        left: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content:flex-end;
        align-items: center;
        a {
          border: 1px solid #E60012;
          background: #E60012;
          width: 189/$f+vw;
          line-height: 48/$f+vw;
          display: block;
          margin-bottom: 16/$f+vw;
          color:white;
          font-size: 20/$f+vw;
          text-transform: capitalize;
          text-align: center;
        }
      }
      &:hover{
        img{
          transform: scale(1.05);
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      img{
        height: 300px;
      }
      .text{
        left: 5%;
        top:60px;
        width: 90%;
        .links{
          a,p,span{
            font-size: 16px;
          }
        }
      }
    }
    .box1{
      margin-top: -77px;
      .welcome{
        width: 80%;
        padding: 20px;
        .t1{
          font-size: 24px;
        }
        .line{
          width: 60px;
          height: 2px;
          margin: 25px 0;
        }
        .t2{
          font-size: 32px;
        }
      }
    }
    .main{
      margin: 30px 5%;
      .section1{
        flex-direction: column;
        margin: 40px 0;
        .pic{
          width: 100%;
        }
        .info{
          width: 100%;
          margin-top: 20px;
          .t1{
            font-size: 16px;
            margin: 15px 0;
          }
          .t2{
            font-size: 20px;
            &::after{
              width: 50px;
              height: 2px;
              margin-top: 15px;
            }
          }
          .des{
            font-size: 14px;
            margin-top: 30px;
          }
        }
      }
      .section2{
        flex-direction: column-reverse;
        .pic{
          width: 100%;
        }
        .info{
          width: 100%;
          margin-top: 20px;
          .t1{
            font-size: 16px;
            margin: 15px 0;
          }
          .t2{
            font-size: 20px;
          }
          .des{
            margin-top: 30px;
            .d{
              img{
                width: auto;
              }
              p{
                font-size: 18px;
                margin-left: 15px;
              }
            }
          }
        }
      }
      .section3{
        flex-wrap: wrap;
        justify-content: space-between;
        .pic{
          width: 100%;
          margin-left: 0;
          margin-bottom: 15px;
          .text{
            font-size: 16px;
            width: 90%;
            padding: 15px 5%;
          }
        }
      }
      .section4{
        margin-top: 40px;
        .t{
          font-size: 32px;
          &::before{
            width: 60px;
            height: 2px;
            margin-bottom: 25px;
          }
        }
        .scroll-container {
          .animate_box {
            padding-bottom: 10px;
  
            .flex-xb {
  
              .icon{
                width: 95px;
                height: 56px;
                margin-left: 10px;
              }
            }
          }
        }
      }
    }
    .work{
      padding: 40px 5%;
      flex-direction: column;
      .l{
        width: 100%;
        .t{
          font-size: 32px;
          &::before{
            width: 60px;
            height: 2px;
            margin-bottom: 25px;
          }
        }
        .des{
          font-size: 14px;
          margin-top: 30px;
        }
      }
      .r{
        width: 100%;
        margin-top: 30px;
        .more{
          width: 150px;
          height:150px;
          a{
            width: 90%;
            font-size: 16px;
            line-height: 30px;
            margin-bottom: 8px;
          }
        }
      }
    }
  }
}